package com.example.demo.model;

import org.springframework.stereotype.Component;

@Component("dog")
public class Dog implements Animal {

    @Override
    public String makeSound() {
        return "Woof!";
    }
}
